﻿Imports DataService
Imports System.Data.Linq
Imports System.Linq
Public Class frmMain
    Inherits RibbonForm

    Private frm_NhapCont As frmNhapCont
    Private dataContext As DataService.DataServiceDataContext = DataService.DMSConnection.Instance()


   
    Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
        MyBase.OnLoad(e)
        Me.WindowState = FormWindowState.Maximized
        Me.MinimumSize = New Size((5 / 6) * Me.Width, (5 / 6) * Me.Height)
    End Sub

    Private Sub rbItemNhapCont_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rbItemNhapCont.Click

        
        If frm_NhapCont Is Nothing Then
            frm_NhapCont = New frmNhapCont
            frm_NhapCont.MdiParent = Me
            frm_NhapCont.Show()
        Else
            frm_NhapCont.Activate()
        End If

    End Sub

End Class